package com.sjn.res.egFoundry;



public class Foundryitem {
    private static egFoundry cpufoundry= null;
    private static egFoundry armfoundry= null;
    private static egFoundry ramfoundry= null;
    private static egFoundry screenfoundry= null;
    private static egFoundry camerafoundry= null;
    private static egFoundry coverfoundry= null;


    private Foundryitem() {

    }
    public synchronized static egFoundry getcpuFoundry(egFoundry egFoundry1) {
        if (cpufoundry == null) {
            cpufoundry = egFoundry1;
            return cpufoundry;
        } else {
            return cpufoundry;
        }
    }
        //arm
        public synchronized static egFoundry getarmFoundry(egFoundry egFoundry2){
            if (armfoundry == null){
                armfoundry = egFoundry2;
                return armfoundry;
            }
            else{
                return armfoundry;
            }
        }
        //cover
        public synchronized static egFoundry getcoverFoundry(egFoundry egFoundry3){
            if (coverfoundry == null){
                coverfoundry = egFoundry3;
                return coverfoundry;
            }
            else{
                return coverfoundry;
            }
        }
        //camera
    public synchronized static egFoundry getcameraFoundry(egFoundry egFoundry4){
        if (camerafoundry == null){
            camerafoundry = egFoundry4;
            return camerafoundry;
        }
        else{
            return camerafoundry;
        }
    }
    //screen
    public synchronized static egFoundry getscreenFoundry(egFoundry egFoundry5){
        if (screenfoundry == null){
            screenfoundry = egFoundry5;
            return screenfoundry;
        }
        else{
            return screenfoundry;
        }
    }
    }

